package com.atguigu.test;

import com.atguigu.config.MainiConfigOfLifeCycle;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Copyright 2025 ZS Network Co., Ltd. All rights reserved.
 * 本文件仅限于正数网络技术有限公司内部传阅，禁止外泄以及用于其他的商业目的。
 * Created by zwn on 2025/7/29.
 *
 * @description:
 */
public class IOCTest_lifeCycle {
    @Test
    public void test01() {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainiConfigOfLifeCycle.class);
        System.out.println("容器创建完成...");

        //applicationContext.getBean("getCar");
        applicationContext.close();
    }
}
